﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;


public class UIResponse : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{

    public Button button;
    
    
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    public void OnPointerEnter(PointerEventData eventData)    //鼠标移入
    {
        float currentTime = Time.time;
        for (int i = 0; i < 4; i++)
        {
            this.transform.localScale = new Vector3(1.0f+(float)i/10, 1.0f + (float)i / 10, 1.0f + (float)i / 10);
        }
        Debug.Log("鼠标移入");
    }

    public void OnPointerExit(PointerEventData eventData)    //鼠标移出
    {
        this.transform.localScale = new Vector3(1.0f, 1.0f, 1.0f);
        Debug.Log("鼠标移出");
    }


}
